package org.javaboy.idemponent.controller;

import org.javaboy.idemponent.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class TokenController {

    @Autowired
    TokenService tokenService;

    @GetMapping("/token")
    public String token() {
        return tokenService.generateToken();
    }
}
